package android.slc.icr.core.service;

import android.slc.icr.core.entity.IcrUserInfo;

import java.util.List;

/**
 * 聊天室用户信息
 *
 * @author slc
 * @date 2022/05/10 上午 11:49
 */
public interface IcrChartRoomMemberService {

    boolean addMember(IcrUserInfo icrUserInfo);

    boolean updateNumber(IcrUserInfo icrUserInfo);

    IcrUserInfo removeMember(IcrUserInfo icrUserInfo);

    IcrUserInfo removeMember(String roomId, String userId);

    boolean containsMember(IcrUserInfo icrUserInfo);

    boolean containsMember(String roomId, String userId);

    IcrUserInfo findUserInfo(String roomId, String userId);

    List<IcrUserInfo> getAllMember(String roomId);

    long getMemberSize(String roomId);

    void removeAll(String roomId);


}
